<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'payset/get_bank_list',
        fields:[[
            {field:'bank',      title:'银行类型', align:'center',width:170,sortable:true},
            {field:'bank_acc',title:'开户行', align:'center',  width:170, sortable:false},
            {field:'bank_no',title:'银行账号',align:'center', width:170, sortable:true},
            {field:'person_name',title:'开户姓名',  align:'center', width:170, sortable:true},
            {field:'money',title:'停用金额',  align:'center', width:170,  sortable:true},
            {field:'status',title:'状态', align:'center', width:170,  sortable:true, formatter:function(v, r){
                return r.status ? '启用' : '停用';
            }},
            {field:'remark',title:'备注',align:'center', width:170,  sortable:true},
            {field:'op',      title:'操作', align:'center', width:170,sortable:false,formatter:function(v,r){
                return '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.dialog(\'修改银行卡\',\'payset/edit_bank\',function(){},true,false);>修改</a>&nbsp;'+
                    '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.confirm("<?php echo $id;?>",1,"asd","确定停用该会员使用?")>存款记录</a>&nbsp;'+
                    '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.confirm("<?php echo $id;?>",1,"asd","确定停用该会员使用?")>删除</a>&nbsp;';
            }}
        ]], tools:[
            {instant:false},
            <?php if(in_array('ADD',$auth)){?>
            {text:"新增入款银行",iconCls:"icon-add",handler:function(){
                $('#<?php echo $id?>').DataSource('add',{title:'新增银行卡',get:'payset/edit_bank',full:false});
            }},
            <?php }?>
            {text:"银行存款记录",iconCls:"icon-payment",handler:function(){
                Core.addTab('银行存款记录', 'payset/list_bank_deposit');
            }}
        ],
        footer:true,
        edit:true,
        checkbox:false,
        success:function(){

        }
    });
</script>